Account Management Biz Api

(0 reviews)

PATCH-billingAccountById(Enable or Disable Autopay)

PATCH

This operation allows partial updates of a account entity. Attribute selection is enabled for all first level attributes.

Request

This section defines all the possible data structures sent by the client when consuming the method.

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (PR) identifying the business unit.Y
idstringUnique identifier of the accountY

Security Headers

nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
nametypedescriptionrequired
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N
channelIdstringThis is to identify the source (Project).
Value : BUS
DIGITAL
Conditionally Mandatory. It is Mandatory only for B2B as there are underlying routing conditions based on channelId received
Conditionally Mandatory
lobstringThe Line of Business Identifier
enum: ["FIXED", "PREPAID", "POSTPAID"]
Conditionally Mandatory
targetSystemstringUse this data type to indicate target system name/id in your request.
Conditionally Mandatory

Body

Request Body for PR

      {
        "defaultPaymentMethod": {
          "@referredType": "Autopay",
          "id": "72"
        },
        "extendedCharacteristic": [
          {
            "value": "Digital",
            "name": "sourceSystem"
          },

           {
            "value": "true",
            "name": "restrictOrder"
          }

        ]
      }
Possible values for "@referredType" are "Autopay","disableAutopay".
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
defaultPaymentMethodObjectY
defaultPaymentMethod.@referredTypeStringThe actual type of the target instance when needed for disambiguation.Y
defaultPaymentMethod.idStringUnique identifier for the EntityRefY
extendedCharacteristicArrayDescribes a given extendedCharacteristic of an object or entity through a name/value pair.Y
extendedCharacteristic.nameStringName of the extendedCharacteristicY
extendedCharacteristic.valueStringThe value of the extendedCharacteristicY

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - PATCH request processed successfully, response body contains an entity corresponding to the requested resource.

      {
        "status": 200,
        "description": "Autopay change request received"
      }

Reviews